home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac: Not for Sale / Another.not.for.sale (Australia).iso / fade into you / getting there / WWW / MacHTTP 1.3.1b16 / MacHTTP.config < prev    next >
Text File  |  1994-10-22  |  6KB  |  142 lines

  1. #MacHTTP Configuration file, v. 1.3.1b16
  2. VERSION 1.3.1b16
  3.  
  4. #The format of this file is free form, with a few exceptions. Lines not
  5. #starting with a keyword are ignored. There can only be 20 total suffix
  6. #definitions (i.e., TEXT, BINARY, and SCRIPT commands). Also, security
  7. #entries (ALLOW, DENY) are evaluated in the order specified in the config file.
  8. #Note, all entries are converted to upper case by MacHTTP, so the config file isn't
  9. #case sensitive.
  10.  
  11. #The following line defines the default file type if a suffix match isn't found.
  12. #The syntax is: DEFAULT <default transfer type> <default MIME type>
  13. DEFAULT TEXT text/html
  14.  
  15. ################ IMPORTANT NEW INFO!!!! ####################
  16. #
  17. # Security realms - see the Read Me for more details
  18.  
  19. #REALM work Co-Workers
  20. #REALM cust Customers
  21.  
  22. #
  23. # MacHTTP can be configured to eliminate DNS accesses. For best performance,
  24. # uncomment the following line. MacHTTP will log IP addresses rather than
  25. # host names, but the software will perform much faster when used with 
  26. # slow domain name servers.
  27.  
  28. #NO_DNS
  29.  
  30.  
  31. #These lines define the suffix file type mappings.
  32. #The syntax is <type> <suffix> <mac file type> <mac creator> <mime type>
  33. #
  34. #Unspecified parameters should be replaced with "*".  MacHTTP tries to match
  35. #a file suffix first. Failing that, it tries to match Mac file type info, and if it
  36. #can, Mac creator info as well. Matching either suffix or type/creator determines
  37. #the transfer type and MIME type. If the client supports HTTP/1.0, the appropriate
  38. #MIME header will be constructed and returned, based on the info below.
  39. #Scripts are responsible for generating their own HTTP/1.0 headers!!!
  40.  
  41. TEXT    .HTML TEXT * text/html
  42. BINARY  .GIF  GIFf * image/gif
  43. SCRIPT  .SCRIPT TEXT * text/html
  44. SCRIPT  * TEXT ToyS text/html
  45. APPL    .EXE APPL * text/html
  46. CGI .CGI APPL * text/html
  47. ACGI .ACGI APPL * text/html
  48. BINARY  .PICT PICT * image/pict
  49. TEXT    .TEXT TEXT * text/plain
  50. TEXT    .TXT TEXT * text/plain
  51. TEXT   .HQX TEXT * application/mac-binhex40
  52. BINARY  .JPG JPEG * image/jpeg
  53. BINARY  .JPEG JPEG * image/jpeg
  54. BINARY .AU * * audio/basic
  55. BINARY .AIFF * * audio/x-aiff
  56. BINARY .XBM * * image/x-xbm
  57. BINARY  .MOV MOOV * video/quicktime
  58. BINARY .MPEG MPEG * video/mpeg
  59. BINARY .WORD WDBN MSWD application/msword
  60. BINARY .XL XLS3 * application/excel
  61. BINARY .SIT SITD * application/x-stuffit
  62.  
  63. #The following lines specify where to find HTML files for error messages, the
  64. #default home (or index) page, the name of the log file, and the message
  65. #returned for security violations.
  66. #
  67. #NOTE!!! INDEX must be a simple file name, not a path like the other files.
  68. INDEX   Default.html
  69. ERROR   :Error.html
  70. LOG     :MacHTTP.log
  71. NOACCESS :NoAccess.html
  72.  
  73. #Sets the timeout for inactive connections to 60 seconds
  74. TIMEOUT 60
  75.  
  76. #Sets the max number of simultaneous users to 8.
  77. #The minimum value is 3, the maximum is 1000 (!!!)
  78. #For larger values, you should monitor memory usage and increase
  79. #MacHTTP's memory allocation in the Finder accordingly.
  80. MAXUSERS 8
  81.  
  82. #Sets the number of "listens" MacHTTP performs simultaneously. For
  83. #busy servers with clients that report "Unable to connect" errors,
  84. #this number should be increased. If the "Listening" statistic in
  85. #the status window ever drops to 1, some clients may miss connecting.
  86. #Default is 5, minimum is 3, maximum is 50. Hint: 3 is a good number.
  87. MAXLISTENS 3
  88.  
  89. #A single copy of MacHTTP only listens on a single port for multiple
  90. #connections. The HTTP standard port is 80. Users may define any port
  91. #they'd like to listen on, but internet standards say that ports
  92. #numbered 1024 and below are reserved for "Well known services" that
  93. #are pre-defined. That means if you change MacHTTP's port from 80,
  94. #you should pick a number greater than 1024 to avoid conflicting with
  95. #things like telnet, gopher, ftp, nfs, pop, etc. that all have ports
  96. #assigned below 1024.
  97. PORT 80
  98.  
  99. #Configure access permissions. There is an implied "DENY *" that is evaluated 
  100. #prior to any user security specifications if present. Otherwise, the default is
  101. #"ALLOW *". End complete host IP addresses with a "." for an exact match. Otherwise
  102. #a statement like "ALLOW 129.106.3" would match hosts 129.106.30.*, 129.106.31.*,
  103. #129.106.32.*, etc.
  104. #
  105. #As of version 1.3.1b9 you may also specify domain names for ALLOW and DENY 
  106. #statements. The domain names are matched from right to left, as opposed to the
  107. #left to right matches done for IP address ALLOW and DENY statements. Also, the
  108. #domain names you specify are case-sensitive and MUST end with a period (.).
  109. #For example:
  110. #  ALLOW tmc.edu.
  111. #  DENY oac.hsc.uth.tmc.edu.
  112. #would deny all hosts (implicit DENY *), allow any tmc.edu node, and deny the
  113. #specific host, oac.hsc.uth.tmc.edu.
  114.  
  115. #NOTE!!! "ALLOW *" and "DENY *" are not valid syntax! 
  116.  
  117. #ALLOW 123.45.6.
  118. #DENY 123.45.6.7.
  119.  
  120. #If the following line is uncommented, MacHTTP will hide the status window when
  121. # it is in the background.
  122. #HIDEWINDOW
  123.  
  124. ###################################################
  125. ###################################################
  126. # Additions for multi-threaded transfers
  127.  
  128. # This is the number of ticks that MacHTTP will "steal" from other processes while
  129. # sending data to clients. This equates directly to how much time MacHTTP will spend
  130. # processing connections. Your Mac will effectively be dedicated to MacHTTP for this
  131. # period of time. The argument is in "ticks", which are 60ths of a second. The default
  132. # is .5 seconds. (30 ticks) Values can range between 0 and 120.
  133.  
  134. PIG_DELAY 30
  135.  
  136. # This is the chunk size that MacHTTP will divide file transfers into. The larger the
  137. # chunk, the longer it will take to transmit over slow connections. The smaller it is, the
  138. # more times MacHTTP will be able to swap between servicing multiple connections and
  139. # freeing the Mac to work on other processes. The argument represents the max number of
  140. # bytes to be sent in a single MacTCP write to the client. The min is 256, the max is 10240.
  141.  
  142. DUMP_BUF_SIZE 8192